package com.hk.dao.manage.user.mapper;

import com.hk.dao.manage.user.model.ManagerUserDO;
import com.hk.dao.manage.user.qo.ManagerUserPageQO;
import com.hk.dao.manage.user.vo.ManagerUserLoginVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ManagerUserMapper {
    /**
     * 注册插入
     */
    int registerInsert(ManagerUserDO managerUser);

    /**
     * 根据用户名查询
     */
    ManagerUserDO getByUsername(@Param("username") String userName);

    List<ManagerUserDO> getAll();

    List<ManagerUserDO> queryListPage(ManagerUserPageQO qo);

    ManagerUserLoginVO checkLogin(@Param("username") String username);

    int updateLastLoginTime(@Param("username") String username);
}
